//
// playerPseudo.cpp for player in /home/taitai/rtyperoxxor/serveur
// 
// Made by yannis berrouag
// Login   <berrou_y@epitech.net>
// 
// Started on  Wed Jan 11 17:37:08 2012 yannis berrouag
// Last update Wed Jan 11 20:40:21 2012 yannis berrouag
//

#include "playerPseudo.h"

void    playerPseudo::onCall(Player *player, std::string const &name, void *data, unsigned int id, protocol::NetHeader *header) {
  std::cout << "i enter there" << std::endl;
  std::string	newName = (char *) data;
  player->setName(newName);
  std::cout << (char *) data << std::endl;
  player->getProto()->send(player, protocol::OK, newName, NULL, 0, id);
}
